<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Title</title>
    <style>
        .box{
            width: 60px;
            height: 60px;
            background-color: pink;
        }
    </style>
<!--
    JS 动画
        + css动画效率优于JS动画
        + css只能执行设定好的线性动画，无法基于业务需求构建复杂的动画效果
-->
    <script src="./jquery/jquery.js"></script>
    <script src="./js/11.js"></script>
</head>
<body>
    <input type="button" value="将元素向右移动,当移动完成后弹出提示" onclick="moveItem()">
    <br><br>
    <div id="item1" class="box"></div>
    <br>
    <input type="button" value="移动元素" onclick="moveItem2()">
    <input type="button" value="停止元素移动" onclick="stopItem2()">
    <br><br>
    <div id="item2" class="box"></div>
    <br><br>
    <div id="item3" class="box"></div>
    <br><br>
    <input type="button" value="显示" onclick="showOrHide(true)">
    <input type="button" value="隐藏" onclick="showOrHide(false)">
</body>
</html>